﻿@model InfoLogic.Models.User

@{
    ViewBag.Title = "User Registration";
}

<h2>Registration Information</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend></legend>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.UserName)*@
            User Name
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.UserPassword)*@
            Password
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserPassword)
            @Html.ValidationMessageFor(model => model.UserPassword)
        </div>

         <div class="editor-label">
            @*@Html.LabelFor(model => model.personId, "Person")*@
             Confirm Password
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ConfirmPassword)
            @Html.ValidationMessageFor(model => model.ConfirmPassword)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RoleId, "Role")
        </div>
        <div class="editor-field">
            @Html.DropDownList("RoleId", String.Empty)
            @Html.ValidationMessageFor(model => model.RoleId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.personId, "Person")
        </div>
        <div class="editor-field">
            @Html.DropDownList("personId", String.Empty)
            @Html.ValidationMessageFor(model => model.personId)
        </div>

        
        <p>
            <input type="submit" value="Save" />
        </p>
        <p> @Html.ActionLink("Manage Business", "Manage", "Business")</p>
        
    </fieldset>
}

@*<div>
    @Html.ActionLink("Back to List", "Index")
</div>*@

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
